package fag.core.game.test.arkanoid;

import fag.core.game.StandardDoodad;

public class Block extends StandardDoodad {
	
	int life = 1;
	
	int score = 0;
	
	public enum Type {
		Blue,
		Brown,
		Gold,
		Grey,
		Orange,
		Pink,
		Red,
		White
	}
	
	public Block(Type type) {
		super(new BlockModel());
		
		switch(type) {
			case Blue:
				setAnimation("blue");
				score = 100;
				break;
			case Brown:
				setAnimation("brown");
				score = 120;
				break;
			case Gold:
				setAnimation("gold");
				score = 200;
				break;
			case Grey:
				setAnimation("grey1");
				life = 2;
				score = 50;
				break;
			case Orange:
				setAnimation("orange");
				score = 60;
				break;
			case Pink:
				setAnimation("pink");
				score = 110;
				break;
			case Red:
				setAnimation("red");
				score = 90;
				break;
			case White:
				setAnimation("white");
				score = 50;
				break;
		}		
	}
}
